/////////////////////////////////////////////////////////////////////////////
// Name:        customcolourdlg.cpp
// Purpose:     
// Author:      Stephen Whittle
// Modified by: 
// Created:     09/06/2009 10:20:20
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif
 
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "customcolourdlg.h"

////@begin XPM images
////@end XPM images


/*
 * CustomColours type definition
 */

IMPLEMENT_DYNAMIC_CLASS( CustomColours, wxDialog )


/*
 * CustomColours event table definition
 */

BEGIN_EVENT_TABLE( CustomColours, wxDialog )

////@begin CustomColours event table entries
////@end CustomColours event table entries

END_EVENT_TABLE()


/*
 * CustomColours constructors
 */

CustomColours::CustomColours()
{
    Init();
}

CustomColours::CustomColours( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
    Init();
    Create(parent, id, caption, pos, size, style);
}


/*
 * CustomColours creator
 */

bool CustomColours::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin CustomColours creation
    SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, id, caption, pos, size, style );

    CreateControls();
    if (GetSizer())
    {
        GetSizer()->SetSizeHints(this);
    }
    Centre();
////@end CustomColours creation
    return true;
}


/*
 * CustomColours destructor
 */

CustomColours::~CustomColours()
{
////@begin CustomColours destruction
////@end CustomColours destruction
}


/*
 * Member initialisation
 */

void CustomColours::Init()
{
////@begin CustomColours member initialisation
////@end CustomColours member initialisation
}


/*
 * Control creation for CustomColours
 */

void CustomColours::CreateControls()
{    
////@begin CustomColours content construction
    CustomColours* itemDialog1 = this;

    wxFlexGridSizer* itemFlexGridSizer2 = new wxFlexGridSizer(3, 1, 0, 0);
    itemDialog1->SetSizer(itemFlexGridSizer2);

    wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
    itemFlexGridSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxFlexGridSizer* itemFlexGridSizer4 = new wxFlexGridSizer(2, 4, 0, 0);
    itemFlexGridSizer4->AddGrowableCol(1);
    itemFlexGridSizer4->AddGrowableCol(2);
    itemFlexGridSizer4->AddGrowableCol(3);
    itemFlexGridSizer4->AddGrowableCol(4);
    itemBoxSizer3->Add(itemFlexGridSizer4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText5 = new wxStaticText( itemDialog1, wxID_STATIC, _("Black"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText5, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl6 = new wxColourPickerCtrl( itemDialog1, ID_COLOURCTRL, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl6, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText7 = new wxStaticText( itemDialog1, wxID_STATIC, _("Dark Gray"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText7, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl8 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL, wxColour(85, 85, 85), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText9 = new wxStaticText( itemDialog1, wxID_STATIC, _("Blue"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText9, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl10 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL1, wxColour(0, 0, 187), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText11 = new wxStaticText( itemDialog1, wxID_STATIC, _("Light Blue"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText11, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl12 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL2, wxColour(100, 150, 250), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl12, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText13 = new wxStaticText( itemDialog1, wxID_STATIC, _("Green"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText13, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl14 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL3, wxColour(0, 187, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl14, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText15 = new wxStaticText( itemDialog1, wxID_STATIC, _("Light Green"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText15, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl16 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL4, wxColour(150, 220, 140), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl16, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText17 = new wxStaticText( itemDialog1, wxID_STATIC, _("Cyan"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText17, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl18 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL5, wxColour(0, 187, 187), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl18, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText19 = new wxStaticText( itemDialog1, wxID_STATIC, _("Light Cyan"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText19, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl20 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL6, wxColour(0, 255, 255), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl20, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText21 = new wxStaticText( itemDialog1, wxID_STATIC, _("Red"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText21, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText22 = new wxStaticText( itemDialog1, wxID_STATIC, _("Light Red"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText22, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl23 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL8, wxColour(255, 100, 100), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl23, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText24 = new wxStaticText( itemDialog1, wxID_STATIC, _("Purple"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText24, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl25 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL9, wxColour(159, 0, 159), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl25, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText26 = new wxStaticText( itemDialog1, wxID_STATIC, _("Light Purple"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText26, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl27 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL10, wxColour(255, 21, 255), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl27, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText28 = new wxStaticText( itemDialog1, wxID_STATIC, _("Brown"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText28, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl29 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL11, wxColour(128, 64, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl29, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText30 = new wxStaticText( itemDialog1, wxID_STATIC, _("Yellow"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText30, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl31 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL12, wxColour(221, 221, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl31, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText32 = new wxStaticText( itemDialog1, wxID_STATIC, _("Gray"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText32, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl33 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL13, wxColour(187, 187, 187), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl33, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText34 = new wxStaticText( itemDialog1, wxID_STATIC, _("White"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer4->Add(itemStaticText34, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxColourPickerCtrl* itemColourPickerCtrl35 = new wxColourPickerCtrl( itemDialog1, ID_COLOURPICKERCTRL14, wxColour(232, 232, 232), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
    itemFlexGridSizer4->Add(itemColourPickerCtrl35, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxFlexGridSizer* itemFlexGridSizer36 = new wxFlexGridSizer(2, 1, 0, 0);
    itemBoxSizer3->Add(itemFlexGridSizer36, 0, wxGROW|wxALL, 5);

    wxButton* itemButton37 = new wxButton( itemDialog1, ID_BUTTON10, _("Save Colour Preset"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer36->Add(itemButton37, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxButton* itemButton38 = new wxButton( itemDialog1, ID_BUTTON14, _("Load Colour Preset"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer36->Add(itemButton38, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxFlexGridSizer* itemFlexGridSizer39 = new wxFlexGridSizer(2, 2, 0, 0);
    itemFlexGridSizer39->AddGrowableCol(0);
    itemFlexGridSizer2->Add(itemFlexGridSizer39, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxButton* itemButton40 = new wxButton( itemDialog1, ID_BUTTON12, _("Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
    itemFlexGridSizer39->Add(itemButton40, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStdDialogButtonSizer* itemStdDialogButtonSizer41 = new wxStdDialogButtonSizer;

    itemFlexGridSizer39->Add(itemStdDialogButtonSizer41, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
    wxButton* itemButton42 = new wxButton( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton42->SetDefault();
    itemStdDialogButtonSizer41->AddButton(itemButton42);

    wxButton* itemButton43 = new wxButton( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
    itemStdDialogButtonSizer41->AddButton(itemButton43);

    itemStdDialogButtonSizer41->Realize();

////@end CustomColours content construction
}


/*
 * Should we show tooltips?
 */

bool CustomColours::ShowToolTips()
{
    return true;
}

/*
 * Get bitmap resources
 */

wxBitmap CustomColours::GetBitmapResource( const wxString& name )
{
    // Bitmap retrieval
////@begin CustomColours bitmap retrieval
    wxUnusedVar(name);
    return wxNullBitmap;
////@end CustomColours bitmap retrieval
}

/*
 * Get icon resources
 */

wxIcon CustomColours::GetIconResource( const wxString& name )
{
    // Icon retrieval
////@begin CustomColours icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;
////@end CustomColours icon retrieval
/*!
 * CustomColours class declaration
 */
}
